package com.maduar.mybatis.demo.service.impl;

import com.maduar.mybatis.demo.service.AppointFactoryService;
import com.maduar.mybatis.demo.service.AppointmentService;
import com.maduar.mybatis.demo.service.OrganService;
import com.maduar.mybatis.demo.vo.AppointmentCancelBaseVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Description:
 *
 * @author maduar maduar@163.com
 * @date 2021-04-17 13:06
 */
@Service
public class AppointmentServiceImpl implements AppointmentService {


    @Autowired
    private AppointFactoryService appointFactoryService;

    @Autowired
    private OrganService organService;

    @Override
    public boolean appointCancel(AppointmentCancelBaseVo in) {

        organService.checkOrgan(in.getType());

        appointFactoryService.cancel(in);

        return true;
    }

    @Override
    public String save() {
        return null;
    }

    @Override
    public String update() {
        return null;
    }

    @Override
    public String receivingReport() {
        return null;
    }
}
